<?php
namespace Base\ConstDir\Api;

class ApiError{


    /**
     * login & member
     */
    const MOBILE_VERIFY_CODE_NOT_VALID = -100;
    const MOBILE_VERIFY_CODE_NOT_VALID_MSG = '手机验证码验证失败';
    const CAR_MORE_THAN_FIVE = -101;
    const CAR_MORE_THAN_FIVE_MSG = '已有五辆爱车记录';
    const MEMBER_EXIST_CAR_MODEL = -102;
    const MEMBER_EXIST_CAR_MODEL_MSG = '该车已存在爱车记录列表';
    const MEMBER_MESSAGE_NOT_EXIST = -103;
    const MEMBER_MESSAGE_NOT_EXIST_MSG = '消息记录不存在';
    const MEMBER_CAR_REPO_NOT_EXIST = -104;
    const MEMBER_CAR_REPO_NOT_EXIST_MSG = '车库信息不存在';
    const MEMBER_RECEIVE_CAR_ADDR_NOT_EXIST = -105;
    const MEMBER_RECEIVE_CAR_ADDR_NOT_EXIST_MSG = '取车地址不存在';
    const MEMBER_CAR_MODEL_NOT_EXIST = -106;
    const MEMBER_CAR_MODEL_NOT_EXIST_MSG = '用户没有车型信息';
    const CAR_MODEL_PARAMETER_MISS = -107;
    const CAR_MODEL_PARAMETER_MISS_MSG = '缺少车型参数';
    const MEMBER_COMMON_ADDR_EXIST = -108;
    const MEMBER_COMMON_ADDR_EXIST_MSG = '该地址已存在用户常用地址中';
    const MEMBER_COMMON_ADDR_COUNT_EXCEED = -109;
    const MEMBER_COMMON_ADDR_COUNT_EXCEED_MSG = '常用地址条数超过上限';
    const MEMBER_CAR_MODEL_EXIST_ORDER = -110;
    const MEMBER_CAR_MODEL_EXIST_ORDER_MSG = '该车型存在关联的已支付订单';

    /**
     * token & signature
     */
    const TOKEN_IS_NOT_VALID = -200;
    const TOKEN_IS_NOT_VALID_MSG = '登录失效, 请重新登录';
    const SIGNATUE_IS_NOT_VALID = -201;
    const SIGNATURE_IS_NOT_VALID_MSG = '签名验证失败';
    /**
     * inde
     */
    const IGNORE_MESSAGE_FAIL = -300;
    const IGNORE_MESSAGE_FAIL_MSG = '忽略消息失败';
    /**
     * common
     */
    const PARAMETER_MISSING = -400;
    const PARAMETER_MISSING_MSG = '缺少参数';
    const DATA_INSERT_FAILED = -401;
    const DATA_INSERT_FAILED_MSG = '数据插入失败';
    const DATA_QUERY_FAILED = -402;
    const DATA_QUERY_FAILED_MSG = '数据查询失败';
    const DATA_UPDATE_FAILED = -403;
    const DATA_UPDATE_FAILED_MSG = '数据更新失败';
    const DATA_DELETE_FAILED = -404;
    const DATA_DELETE_FAILED_MSG = '数据删除失败';
    const MOBILE_VALIDATE_FAILED = -405;
    const MOBILE_VALIDATE_FAILED_MSG = '手机号格式不正确';
    const DATA_NOT_FOUND = -406;
    const DATA_NOT_FOUND_MSG = '查询无数据';
    const TRANSACTION_EXECUTE_FAILED = -407;
    const TRANSACTION_EXECUTE_FAILED_MSG = '事务处理失败';
    const UPLOAD_PIC_FAILED = -408;
    const UPLOAD_PIC_FAILED_MSG = '上传图片失败';

    /**
     * product & cart
     */
    const PRODUCT_NOT_EXIST = -500;
    const PRODUCT_NOT_EXIST_MSG = '商品不存在';
    const CART_ADD_ERROR = -501;
    const CART_ADD_ERROR_MSG = '添加到购物车失败';
    const CART_REMOVE_ERROR = -502;
    const CART_REMOVE_ERROR_MSG = '购物车移除商品失败';
    const CART_CLEAR_ERROR = -503;
    const CART_CLEAR_ERROR_MSG = '清空购物车失败';
    const CITY_PRODUCT_NOT_EXIST = -504;
    const CITY_PRODUCT_NOT_EXIST_MSG = '该城市站无商品数据';

    /**
     * order & bonus & invitation
     */
    const BONUS_STRATEGY_FAILED = -600;
    const BONUS_STRATEGY_FAILED_MSG = '优惠劵策略执行失败';
    const PAY_DETAIL_NOT_EXIST = -601;
    const PAY_DETAIL_NOT_EXIST_MSG = '支付记录不存在';
    const RECHARGE_MONEY_NOT_ENOUGH = -602;
    const RECHARGE_MONEY_NOT_ENOUGH_MSG = '用户余额不足';
    const ORDER_ALREADY_PAID = -603;
    const ORDER_ALREADY_PAID_MSG = '订单已支付';
    const ORDER_TRANSACTION_FAILED = -604;
    const ORDER_TRANSACTION_FAILED_MSG = '订单事务处理失败';
    const BONUS_CODE_NOT_VALID = -605;
    const BONUS_CODE_NOT_VALID_MSG = '兑换码不存在';
    const INVITATION_CODE_IS_NOT_VALID = -606;
    const INVITATION_CODE_IS_NOT_VALID_MSG = '邀请码验证失败';
    const BONUS_EXPIRE = -607;
    const BONUS_EXPIRE_MSG = '兑换码过期';
    const CODE_EXCHANGE_PRODUCT_FAIL = -608;
    const CODE_EXCHANGE_PRODUCT_FAIL_MSG = '兑换产品失败';
    const BONUS_CODE_ALREADY_USED = -609;
    const BONUS_CODE_ALREADY_USED_MSG = '兑换码已使用';
    const PRODUCT_PROPERTY_NOT_EXIST = -610;
    const PRODUCT_PROPERTY_NOT_EXIST_MSG = '商品不存在该属性';
    const PAY_RECHARGE_MONEY_NOT_ENOUGH = -611;
    const PAY_RECHARGE_MONEY_NOT_ENOUGH_MSG = '余额不足付款';
    const PAY_BONUS_NOT_ENABLE = -612;
    const PAY_BONUS_NOT_ENABLE_MSG = '优惠劵不可用';
    const BONUS_CODE_NOT_ENABLE = -613;
    const BONUS_CODE_NOT_ENABLE_MSG = '兑换码不可用';
    const HAVE_BEEN_INVITED = -614;
    const HAVE_BEEN_INVITED_MSG = '只能被邀请一次';
    const UNION_PAY_TN_GET_FAILED =  -615;
    const UNION_PAY_TN_GET_FAILED_MSG = '银联支付号获取失败';
    const ORDER_CAR_PLATE_NUMBER_MISS = -616;
    const ORDER_CAR_PLATE_NUMBER_MISS_MSG = '缺少车牌号';
    const COMMON_CODE_EXCHANGE_ONCE = -617;
    const COMMON_CODE_EXCHANGE_ONCE_MSG = '通用兑换码每个用户只允许兑换一次';
    const MEMBER_NOT_IN_SERVICE_LOCATION = -618;
    const MEMBER_NOT_IN_SERVICE_LOCATION_MSG = '用户所在区域不在服务范围';
    const BONUS_INDIVIDUAL_EXCHANGE_COUNT_EXCESS = -619;
    const BONUS_INDIVIDUAL_EXCHANGE_COUNT_EXCESS_MSG = '您的兑换次数已超过兑换上限';
    const ORDER_IS_REFUND = -620;
    const ORDER_IS_REFUND_MSG = '订单已退款';
    const ORDER_IS_CANCELED = -621;
    const ORDER_IS_CANCELED_MSG = '订单已取消';
    const BONUS_EXCHANGE_MISS_CAR_MODEL = -622;
    const BONUS_EXCHANGE_MISS_CAR_MODEL_MSG = '您还没有车型信息, 不能兑换优惠券, 请先添加车辆信息！';

    /**
     * common
     */
    const SERVICE_NOT_FOUND = -700;
    const SERVICE_NOT_FOUND_MSG = '未找到服务对应的文件';

    /**
     * service card
     */
    const MEMBER_SERVICE_CARD_NOT_EXIST = -800;
    const MEMBER_SERVICE_CARD_NOT_EXIST_MSG = '用户不存在可用的服务记录';
    const MEMBER_SERVICE_CARD_NUM_NOT_ENOUGH = -801;
    const MEMBER_SERVICE_CARD_NUM_NOT_ENOUGH_MSG = '该服务次数已用完';
    const MEMBER_SERVICE_CAR_NOT_EXIST = -802;
    const MEMBER_SERVICE_CAR_NOT_EXIST_MSG = '用户不存在可做服务的车型';

    /**
     * case
     */
    const RECEIVE_CAR_FAILED = -900;
    const RECEIVE_CAR_FAILED_MSG = '确认收车失败';
    const CASE_RECORD_NOT_EXIST = -901;
    const CASE_RECORD_NOT_EXIST_MSG = '受理记录不存在';
    const CASE_CAN_NOT_BE_EVALUATED = -902;
    const CASE_CAN_NOT_BE_EVALUATED_MSG = '该受理当前不可评价';
    const CASE_BEEN_EVALUATED = -903;
    const CASE_BEEN_EVALUATED_MSG = '该受理已经评价过';
    const CASE_CAN_NOT_BE_LEAVE_CAR = -904;
    const CASE_CAN_NOT_BE_LEAVE_CAR_MSG = '该受理不可确认交车';
    const CASE_CAN_NOT_BE_RECEIVE_CAR = -905;
    const CASE_CAN_NOT_BE_RECEIVE_CAR_MSG = '该受理不可确认收车';
    const CASE_BESPEAK_NOT_EXIST = -906;
    const CASE_BESPEAK_NOT_EXIST_MSG = '预约信息不存在';
    const CASE_BESPEAK_EXIST = -907;
    const CASE_BESPEAK_EXIST_MSG = '已存在预约信息';

    /**
     * test report
     */
    const CAR_TEST_REPORT_NOT_EXIST = -1000;
    const CAR_TEST_REPORT_NOT_EXIST_MSG = '体检报告不存在';


    /**
     * open plateform
     */
    const OPEN_USER_AUTH_FAILED = -1100;
    const OPEN_USER_AUTH_FAILED_MSG = '用户名或密码错误';
    const OPEN_PERMISSION_DENIED = -1101;
    const OPEN_PERMISSION_DENIED_MSG = '无权限访问接口';
}